package com.spring.wx.oauth.service;

import com.spring.wx.oauth.dao.UserMapper;
import com.spring.wx.oauth.dao.WxLoginMapper;
import com.spring.wx.oauth.entity.UserEntity;
import com.spring.wx.oauth.entity.WxLoginUser;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * Copyright: yueyong (c) 2022
 *
 * @author he.shaorong
 * @version 1.0
 * @date 2022/7/1
 */
@Service
public class WxLoginUserService {
    @Resource
    private WxLoginMapper wxLoginMapper;

    public WxLoginUser getOpenid(String openid) {
        return wxLoginMapper.getOpenid(openid);
    }

    public int insert(WxLoginUser wxLoginUser) {
        return wxLoginMapper.insert(wxLoginUser);
    }

    public int update(WxLoginUser wxLoginUser) {
        return wxLoginMapper.update(wxLoginUser);
    }
}
